package com.itheima.mapper;



import com.itheima.pojo.Login;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.ResultMap;

import java.util.List;

@Mapper
public interface LoginMapper {

//    @Insert( "insert into login (id, phone, token, sort) value (#{id},#{phone},#{token},#{sort})")
    @ResultMap("LoginMapper")
    Integer a(Login login);

//    @Select("select id,phone,token,sort from login where phone = #{phone}")
    @ResultMap("LoginMapper")
    Login sel(String phone);

}
